package com.yth.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * <p>
 * 监听事件
 * </p>
 * 在CommandLineRunner::run之后
 *
 * @author yutianhong
 * @version 1.0
 * @since 2023/09/05 15:54
 */
@Slf4j
public class TestContextRefreshedEventListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent applicationReadyEvent) {
        log.info("[ApplicationListener<ContextRefreshedEvent>::onApplicationEvent]");
    }
}
